/* DetailView Component Styles */
.mini-xaf-detail-view-component {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.detail-view-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #333;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #e0e0e0;
}

.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-icon {
  width: 16px;
  height: 16px;
}

.property-editors-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.save-button, .cancel-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.save-button {
  background-color: #007bff;
  color: white;
}

.save-button:hover {
  background-color: #0069d9;
}

.cancel-button {
  background-color: #f0f0f0;
  color: #333;
}

.cancel-button:hover {
  background-color: #e0e0e0;
}

.empty-editors-message {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  text-align: center;
  color: #666;
}

.empty-editors-message p {
  margin: 8px 0;
}

.debug-info {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: left;
}

.debug-info h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.debug-info pre {
  background-color: #fff;
  padding: 10px;
  border-radius: 3px;
  overflow: auto;
  max-height: 200px;
}

/* PropertyEditor Component Styles */
.mini-xaf-property-editor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.mini-xaf-property-editor label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.mini-xaf-property-editor input[type="text"],
.mini-xaf-property-editor input[type="number"],
.mini-xaf-property-editor input[type="date"],
.mini-xaf-property-editor select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

.mini-xaf-property-editor input:focus,
.mini-xaf-property-editor select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.mini-xaf-property-editor input:disabled,
.mini-xaf-property-editor select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.boolean-property-editor label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.boolean-property-editor input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}
